print("_______协程函数替换_______")
local util=require("xlua.util")

xlua.hotfix(CS.HotfixMain,{
    IE = function (self)
        --返回XLUA处理过的lua协程函数
        return util.cs_generator(function ()
            while true do
                coroutine.yield(CS.UnityEngine.WaitForSeconds(1))
                print("lua")
                print(self)
            end
        end)
    end
})